﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Tank.Properties;

namespace Tank
{
    /// <summary>
    /// 玩家弹药类
    /// </summary>
    public class PlayerShell : Shell
    {
        /// <summary>
        /// 弹药造型图
        /// </summary>
         private static Image PlayerShellImg=Resources.mshull;

        /// <summary>
        /// 玩家弹药构造函数
        /// </summary>
        /// <param name="role">玩家</param>
        /// <param name="life">子弹寿命</param>
        /// <param name="speed">子弹速度</param>
        /// <param name="power">子弹威力</param>
         public PlayerShell(Roles role, int life, int speed, int power)
            : base(role, life, PlayerShellImg.Width, PlayerShellImg.Height, speed, power)
        {
        }

        /// <summary>
        /// 画出玩家弹药
        /// </summary>
        /// <param name="g"></param>
         public override void Draw(Graphics g)
         {
             base.Move();
             g.DrawImage(PlayerShellImg, this.X, this.Y);
         }
    }
}
